<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

    <class name="cn.firstsoft.modules.portlet.domain.PortletNewModules" table="portlet_new_modules">

     <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				   <param name="sequence">PORTLET_NEW_MODULES_ID_SEQ</param>
            </generator>
     </id>
     <property name="name" type="string">
               <column name="name" length="200" />
      </property>
      <property name="itemClassType" type="string">
             <column name="item_class_type" length="600" not-null="true"/>
      </property>
      <property name="path" type="string">
             <column name="path" length="100" not-null="true"/>
      </property>
      <property name="code" type="string">
             <column name="code" length="100" not-null="true"/>
      </property>
      <property name="moduleClass" type="string">
               <column name="module_class" length="200" />
      </property>
      <property name="formClass" type="string">
               <column name="formC_class" length="200" />
      </property>
	  <property name="moreLink" type="string">
               <column name="more_link" length="500" />
      </property>
      <property name="dataSrc" type="string">
               <column name="data_src" length="500" />
      </property>
      <property name="sortCol" type="string">
               <column name="sort_col" length="500" />
      </property>
      <property name="defaultSet" type="string">
               <column name="default_set" length="2000" />
      </property>
       <property name="uiSet" type="string">
               <column name="ui_set" length="2000" />
      </property>

      <set name="portletNewModuleFieldsSet" lazy="true" inverse="true" cascade="save-update" batch-size="5">
      		<key>
             	<column name="portlet_new_module_id" not-null="true"/>
            </key>
            <one-to-many class="cn.firstsoft.modules.portlet.domain.PortletNewModuleFields"/>
      </set>
    </class>

</hibernate-mapping>
